﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using GCC.Container.Models;

namespace tcm.request.System
{
    public class SysUserRequest : PageRequestBase
    {
        public string? user_name { get; set; }

        public string? email { get; set; }

        public string? phone { get; set; }

    }

    public class SysUserDto: BaseExtensionDto
    {
        public string? user_name { get; set; } = "";

        public string? nick_name { get; set; } = "";
        
        public string? email { get; set; } = "";

        public string? password { get; set; } = "";

        public string? phone { get; set; } = "";

        public int sex { get; set; } = 1;

        public int status { get; set; } = 1;

        public string? remark { get; set; } = "";

        public string? roleIds { get; set; } = "";
    }

    public class SysUserView
    {
        public long id { get; set; }

        public string user_name { get; set; }

        public string email { get; set; }

        public string phone { get; set; }

        public int sex { get; set; }

        public int status { get; set; }

        public string remark { get; set; }

        public string nick_name { get; set; }

        public string roleIds { get; set; }

    }

    public class SysUserPwd: BaseExtensionDto
    {
        public string password { get; set; } = "";

        public string new_password { get; set; } = "";

    }

    public class SysUpdatePwd: BaseExtensionDto
    {
        public string new_password { get; set; } = "";

    }
}
